package com.pet.petadoption.user.mapper;

import com.pet.petadoption.user.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {

    User userLogin(@Param("account") String account,@Param("upwd") String upwd);

    List<User> findUsers(Map<String,Object> map);

    Boolean addUser(User user);

    User findUserById(@Param("id") Integer id,@Param("status") Integer status);

    List<User> findUseByUname(@Param("info") String info,@Param("status") Integer status);

    Integer changeUserStatus(@Param("id") Integer id,@Param("status") Integer status);

    Integer delArr(@Param("ids") String ids);

    Integer updateUser(User user);

}
